<template>
  <div>
    <div class="container">
      <div class="tableWraper">
        <div class="money">
          <table class="all_tb" cellspacing="10">
            <tr>
              <th>总实际到账金额</th>
              <th>总提现金额</th>
            </tr>
            <tr>
              <td>0</td>
              <td>0</td>
            </tr>
          </table>
        </div>
        <div class="seachmsg">
          <table class="all_tb1">
            <tr>
              <th>姓名：<input class="inputbox" placeholder="姓名查询" /></th>
              <th class="clock">
                申请日期:
                <el-date-picker
                  v-model="value2"
                  type="daterange"
                  align="right"
                  unlink-panels
                  range-separator="至"
                  start-placeholder="开始日期"
                  end-placeholder="结束日期"
                >
                </el-date-picker>
              </th>
            </tr>
          </table>
        </div>
      </div>
      <div class="msgtable">
        <div class="btns">
          <el-button plain>全部（0）</el-button>
          <el-button plain>提现申请（0）</el-button>
          <el-button plain>提现中（0）</el-button>
          <el-button plain>提现成功（0）</el-button>
          <el-button plain>提现失败（0）</el-button>
        </div>
        <div class="sendmethod">
          <p>发款方式:</p>
          <div class="checks">
            <el-radio v-model="radio" label="1">全部</el-radio>
            <el-radio v-model="radio" label="2">个人</el-radio>
            <el-radio v-model="radio" label="3">公司</el-radio>
          </div>
        </div>
        <div class="getmethod">
          <p>提现方式:</p>
          <div class="checks1">
            <el-radio v-model="radio1" label="1">全部</el-radio>
            <el-radio v-model="radio1" label="2">普通提现</el-radio>
            <el-radio v-model="radio1" label="3">管理津贴提现</el-radio>
          </div>
        </div>
        <div class="export-data">
          <el-button type="primary">导出数据到Excel</el-button>
          <el-button type="primary" @click="submitForm('numberValidateForm')">
            <i class="el-icon-search"></i> 查询</el-button
          >
          <el-button @click="resetForm('numberValidateForm')">
            <i class="el-icon-refresh-right"></i> 重置</el-button
          >
        </div>
      </div>
    </div>
    
    <!-- 提现列表表格 -->
   <div class="data">
      <el-table :data="tableData" style="width: 100%" height="250">
      <el-table-column fixed prop="id" label="ID" width="150">
      </el-table-column>
      <el-table-column prop="name" label="姓名" width="120"> </el-table-column>
      <el-table-column prop="idcard" label="身份证" width="180">
      </el-table-column>
      <el-table-column prop="phone" label="手机号" width="120">
      </el-table-column>
      <el-table-column prop="getmoney" label="提现金额" width="120">
      </el-table-column>
      <el-table-column prop="actualget" label="实际到账" width="120">
      </el-table-column>
      <el-table-column prop="bandcard" label="银行卡" width="120">
      </el-table-column>
      <el-table-column prop="gettime" label="申请提现时间" width="120">
      </el-table-column>
      <el-table-column prop="status" label="状态" width="120">
      </el-table-column>
      <el-table-column prop="whyerror" label="失败原因" width="120">
      </el-table-column>
      <el-table-column fixed="right" prop="option" label="操作" width="150">
        <el-button class="edit" type="primary">编辑</el-button>
        <el-button type="danger" icon="el-icon-delete" circle></el-button>
      </el-table-column>
    </el-table>
   </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      radio: "1",
      radio1: "1",
      tableData: [
        {
          id: 12345,
          name: "王小虎",
          idcard: 2323322233232,
          phone: 1311313131,
          getmoney: "239.00",
          actualget: "230.00",
          bandcard: 123333333333,
          gettime: "2021-02-23",
          status: "在线",
          whyerror: "欠费",
        },
        {
          id: 12345,
          name: "王小虎",
          idcard: 2323322233232,
          phone: 1311313131,
          getmoney: "239.00",
          actualget: "230.00",
          bandcard: 123333333333,
          gettime: "2021-02-23",
          status: "在线",
          whyerror: "欠费",
        },
      ],
      value2: "",
    };
  },
  methods: {
    submitForm(formName) {
      this.$refs[formName].validate((valid) => {
        if (valid) {
          alert("submit!");
        } else {
          console.log("error submit!!");
          return false;
        }
      });
    },
    resetForm(formName) {
      this.$refs[formName].resetFields();
    },
  },
};
</script>

<style scoped>

.edit[data-v-647dab4a] {
    width: 50px;
    margin-left: 15px;
    padding-left: 10px;
}
.container {
  margin: 0 20px;
}
.tableWraper {
  display: flex;
  flex-direction: column;
}
.all_tb {
  width: 36.5%;
  height: 100%;
  float: left;
  margin-top: 20px;
}
.seachmsg {
  width: 1000px;
}

.inputbox {
  width: 270px;
  height: 30px;
  border-radius: 3px;
  outline: none;
  border: 1px solid silver;
}
.all_tb1 {
  width: 95%;
  height: 100%;
  float: left;
  margin-top: 20px;
}
.clock {
  margin-left: 20px;
}

.msgtable {
  display: flex;
  flex-direction: row;
  margin-left: 40px;
  margin-top: 20px;
  justify-content: space-between;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  width: 380px;
}
.sendmethod {
  display: flex;
  flex-direction: row;
}
.checks {
  display: flex;
  flex-direction: column;
  width: 50px;
  margin-top: 10px;
  margin-left: 6px;
}
.el-radio {
  margin-bottom: 4px;
}
.getmethod {
  display: flex;
  flex-direction: row;
}
.checks1 {
  display: flex;
  flex-direction: column;
  width: 50px;
  margin-top: 10px;
  margin-left: 6px;
}

.edit{
  width: 50px;
  margin-left: -25px;
}

.data{
  margin-top: 40px;
}
</style>